﻿<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>不想起名|查看全文</title>
    <%
        String context = request.getContextPath();
    %>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="keywords"
          content="不想起名,中国海洋大学,计算机,学生,个人主页,HTML,CSS,PHP,JavaScript,jQuery,XML,AJAX,,SQL,bootstrap,Java"/>
    <meta name="description" content="不想起名的小窝"/>
    <link rel="stylesheet" href="<%=context %>/css/main.css"/>
    <noscript>
        <link rel="stylesheet" href="<%=context %>/css/noscript.css"/>
    </noscript>
    <link rel="shortcut icon" href="<%=context %>/img/favicon.ico"/>
    <script src="<%=context %>/js/jquery.min.js"></script>
    <script src="<%=context %>/js/jquery.scrolly.min.js"></script>
    <script src="<%=context %>/js/jquery.dropotron.min.js"></script>
    <script src="<%=context %>/js/jquery.scrollex.min.js"></script>
    <script src="<%=context %>/js/browser.min.js"></script>
    <script src="<%=context %>/js/breakpoints.min.js"></script>
    <script src="<%=context %>/js/util.js"></script>
    <script src="<%=context %>/js/main.js"></script>
</head>
<body class="is-preload">
<div id="page-wrapper">

    <!-- Header -->
    <header id="header">
        <h1 id="logo"><a href="<%=context %>/index.html">不想起名</a></h1>
        <nav id="nav">
            <ul>
                <li><a href="<%=context %>/index.html">首页</a></li>
                <li><a href="<%=context %>/servlet/PostlistServlet?role=0">博客</a></li>
                <li><a href="<%=context %>/about.html">关于</a></li>
                <li><a href="<%=context %>/login.html" class="button">登录</a></li>
            </ul>
        </nav>
    </header>

    <!-- Main -->
    <div id="main" class="wrapper style1">
        <div class="container">
            <header class="major">
                <c:forEach items="${result.dataList }" var="article">
                    <h2>${article.title }</h2>
                    <p>${fn:substring(article.createdate,0,10)}&nbsp;|&nbsp;${article.sname }</p>
                </c:forEach>
            </header>

            <!-- Content -->
            <section id="content" style="padding-left: 10%;padding-right: 10%">
                <c:forEach items="${result.dataList }" var="article">
                    <p>${article.html_content }</p>
                </c:forEach>
            </section>

        </div>
    </div>

    <!-- Footer -->
    <footer id="footer">
        <ul class="copyright">
            <li>&copy; 不想起名</li>
        </ul>
    </footer>

</div>
</body>
</html>